<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<div class="box">
			JavaScript从入门到入坑
		</div>
	</body>
</html>

<style type="text/css">
	.box {
		width: 200px;
		height: 200px;
		background: url(img/1.png)no-repeat center;
		color: #fff;
		text-align: center;
		line-height: 200px;
		/* 给元素设置透明边框 */
		border: 10px solid #000000;
		border: 10px solid rgba(0,0,0,.2);
	}
</style>
